package com.matt.domain.materials;

import com.matt.commons.model.Model;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Entity
@Table(name = "materiel_category")
@EqualsAndHashCode(callSuper = true)
@Data
public class MaterielCategory extends Model {
  /**
   * 物资分类
   */
  @Column(name = "name", columnDefinition = "varchar(50) COMMENT '物资分类'")
  private String name;

  /**
   * 园区id
   */
  @Column(name = "areaId", columnDefinition = " varchar(32) COMMENT '对应园区id' ")
  private String areaId;

  /**
   * 排序
   */
  @Column(name = "sort", columnDefinition = " int COMMENT '排序' ")
  private Integer sort;

  /**
   * 创建时间
   */
  @Column(name = "created", nullable = false, columnDefinition = " datetime DEFAULT NOW() COMMENT '创建时间' ")
  private Timestamp created;

  
}